<html>
<body>

<h1>JsWs Root</h1>

<hr>

<h2>Installed Modules</h2>

<?js
var moduleKeys = new Array();
for (var key in server.modules)
	moduleKeys.push(key);
moduleKeys = moduleKeys.sort();
for (var i = 0; i < moduleKeys.length; i++) {
	var key = moduleKeys[i];
	if (key == JSWS_MODULES_ROOTKEY)
		continue;
	response.write("<b>" + server.modules[key][JSWS_MODULES_NAMEKEY] + "</b><br>\n");
	response.write("Description: <i>" + server.modules[key][JSWS_MODULES_DESCRIPTIONKEY] + "</i><br>\n");
	response.write("Virtual Path: <i>" + server.modules[key][JSWS_MODULES_VIRTUALPATHKEY] + "</i><br>\n");
	if (server.modules[key][JSWS_MODULES_STARTPAGEKEY])
		response.write("Start Page: <i><a href=\""
			+ server.modules[key][JSWS_MODULES_VIRTUALPATHKEY]
			+ server.modules[key][JSWS_MODULES_STARTPAGEKEY]
			+ "\">"
			+ server.modules[key][JSWS_MODULES_VIRTUALPATHKEY]
			+ server.modules[key][JSWS_MODULES_STARTPAGEKEY]
			+ "</a></i><br>\n");
	response.write("<br>\n");
}
?>

<hr>
<b>Root:</b> <?js= server.root.path; ?><br>
<b>Server Root:</b> <?js= server.serverRoot.path; ?><br>
<b>Document Root:</b> <?js= server.documentRoot.path; ?><br>
<b>Script Path:</b> <?js= script.path.path; ?><br>
<b>Script Root:</b> <?js= script.root.path; ?><br>
<b>Script Location:</b> <?js= script.mapPath(script.path).path; ?><br>

</body>
</html>
